﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using AutoWelding.DAL;
using AutoWelding.Models;

namespace AutoWelding.BLL
{
    public class ProductsBLL
    {
        private ProductsDAL productsDAL = new ProductsDAL();

        /// <summary>
        /// 获取产品列表
        /// </summary>
        /// <param name="productName"></param>
        /// <param name="isDelete"></param>
        /// <returns></returns>
        public List<ProductsModel> GetProductsList(string productName, bool isDelete)
        {
            int isDeleteCode = isDelete ? 0 : 1;
            return productsDAL.GetProductsList(productName,isDeleteCode);
        }
        
    }
}
